﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data;
using System.Data.SqlClient;
using System.ComponentModel;
using DoAnWeb.DTO;
using DoAnWeb.DAO;

namespace DoAnWeb.BUS
{
    public class CT_DonHangBUS
    {
        private CT_DonHangDAO DAO = new CT_DonHangDAO();

        public BindingList<CT_DonHangDTO> GetList_DonHang(int _MaDonHang)
        {
            return DAO.GetList_DonHang(_MaDonHang);
        }

        public BindingList<CT_DonHangDTO> GetList_DoanhNghiep(string _TenTaiKhoan)
        {
            return DAO.GetList_DoanhNghiep(_TenTaiKhoan);
        }

        public BindingList<CT_DonHangDTO> GetList_TinKhuyenMai_ChuaXoa(int _Ma)
        {
            return DAO.GetList_TinKhuyenMai_ChuaXoa(_Ma);
        }

        public BindingList<CT_DonHangDTO> GetList_TinKhuyenMai_DaXoa(int _Ma)
        {
            return DAO.GetList_TinKhuyenMai_DaXoa(_Ma);
        }

        public bool Add(CT_DonHangDTO _DTO)
        {
            return DAO.Add(_DTO);
        }

        public CT_DonHangDTO GetFromId(int _MaCTDonHang)
        {
            return DAO.GetFromId(_MaCTDonHang);
        }

        public bool UpdateDaGiao(int _MaCTDonHang)
        {
            return DAO.UpdateDaGiao(_MaCTDonHang);
        }

        public bool UpdateChuaGiao(int _MaCTDonHang)
        {
            return DAO.UpdateChuaGiao(_MaCTDonHang);
        }

    }
}